﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.Platform.Migrations
{
    /// <inheritdoc />
    public partial class modify_column_dept_name : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "WUBICODE",
                table: "MainDeptInfo",
                newName: "Wubicode");

            migrationBuilder.RenameColumn(
                name: "PINYINCODE",
                table: "MainDeptInfo",
                newName: "Pinyincode");

            migrationBuilder.RenameColumn(
                name: "MEMO",
                table: "MainDeptInfo",
                newName: "Memo");

            migrationBuilder.RenameColumn(
                name: "ITRO",
                table: "MainDeptInfo",
                newName: "Itro");

            migrationBuilder.RenameColumn(
                name: "ENDTIME",
                table: "MainDeptInfo",
                newName: "Endtime");

            migrationBuilder.RenameColumn(
                name: "BEGNTIME",
                table: "MainDeptInfo",
                newName: "Begntime");

            migrationBuilder.RenameColumn(
                name: "SRT_NO",
                table: "MainDeptInfo",
                newName: "SrtNo");

            migrationBuilder.RenameColumn(
                name: "ROOT_FLAG",
                table: "MainDeptInfo",
                newName: "RootFlag");

            migrationBuilder.RenameColumn(
                name: "ORGAN_ID",
                table: "MainDeptInfo",
                newName: "OrganId");

            migrationBuilder.RenameColumn(
                name: "LV_INDEX",
                table: "MainDeptInfo",
                newName: "LvIndex");

            migrationBuilder.RenameColumn(
                name: "LEAF_FLAG",
                table: "MainDeptInfo",
                newName: "LeafFlag");

            migrationBuilder.RenameColumn(
                name: "DEPT_NAME",
                table: "MainDeptInfo",
                newName: "DeptName");

            migrationBuilder.RenameColumn(
                name: "DEPT_CODG",
                table: "MainDeptInfo",
                newName: "DeptCodg");

            migrationBuilder.RenameColumn(
                name: "CATY_NAME",
                table: "MainDeptInfo",
                newName: "CatyName");

            migrationBuilder.RenameColumn(
                name: "CATY_CODE",
                table: "MainDeptInfo",
                newName: "CatyCode");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "Wubicode",
                table: "MainDeptInfo",
                newName: "WUBICODE");

            migrationBuilder.RenameColumn(
                name: "Pinyincode",
                table: "MainDeptInfo",
                newName: "PINYINCODE");

            migrationBuilder.RenameColumn(
                name: "Memo",
                table: "MainDeptInfo",
                newName: "MEMO");

            migrationBuilder.RenameColumn(
                name: "Itro",
                table: "MainDeptInfo",
                newName: "ITRO");

            migrationBuilder.RenameColumn(
                name: "Endtime",
                table: "MainDeptInfo",
                newName: "ENDTIME");

            migrationBuilder.RenameColumn(
                name: "Begntime",
                table: "MainDeptInfo",
                newName: "BEGNTIME");

            migrationBuilder.RenameColumn(
                name: "SrtNo",
                table: "MainDeptInfo",
                newName: "SRT_NO");

            migrationBuilder.RenameColumn(
                name: "RootFlag",
                table: "MainDeptInfo",
                newName: "ROOT_FLAG");

            migrationBuilder.RenameColumn(
                name: "OrganId",
                table: "MainDeptInfo",
                newName: "ORGAN_ID");

            migrationBuilder.RenameColumn(
                name: "LvIndex",
                table: "MainDeptInfo",
                newName: "LV_INDEX");

            migrationBuilder.RenameColumn(
                name: "LeafFlag",
                table: "MainDeptInfo",
                newName: "LEAF_FLAG");

            migrationBuilder.RenameColumn(
                name: "DeptName",
                table: "MainDeptInfo",
                newName: "DEPT_NAME");

            migrationBuilder.RenameColumn(
                name: "DeptCodg",
                table: "MainDeptInfo",
                newName: "DEPT_CODG");

            migrationBuilder.RenameColumn(
                name: "CatyName",
                table: "MainDeptInfo",
                newName: "CATY_NAME");

            migrationBuilder.RenameColumn(
                name: "CatyCode",
                table: "MainDeptInfo",
                newName: "CATY_CODE");
        }
    }
}
